package org.jeecg.modules.health_records.health_chest.service;

import org.jeecg.modules.health_records.health_chest.entity.HealthChestIndexInfo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * @Description: 现病史-体格检查-胸部检查
 * @Author: jeecg-boot
 * @Date:   2025-06-25
 * @Version: V1.0
 */
public interface IHealthChestIndexInfoService extends IService<HealthChestIndexInfo> {
    /**按recordid查询**/
     List<HealthChestIndexInfo> queryByRecordId(HealthChestIndexInfo healthChestIndexInfo);
    /**电子病历信息查询接口（查询时间最新的那条数据）--按recordid查询**/
     List<HealthChestIndexInfo> queryElecRecord(HealthChestIndexInfo healthChestIndexInfo);
    /**新规则:查询当下时间往前12个月的就诊数据作为电子病历数据**/
    List<HealthChestIndexInfo>  newQueryElecRecord(HealthChestIndexInfo healthChestIndexInfo);
    /**新规则：除去当下时间往前12个月的就诊数据，剩下的数据为既往病历数据**/
    List<HealthChestIndexInfo>  newQueryPastRecord(HealthChestIndexInfo healthChestIndexInfo);

}
